<!--_meta 作为公共模版分离出去-->
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
	<style type="text/css">
		.suglist{
			position:relative;
			top:-1px;
			left:0px;
			z-index:100;
			text-align:left;
			border:1px solid rgba(0,0,0,0.2);
			width:350px;
			box-sizing:border-box;
			box-shadow:0 4px 10px 2px rgba(0,0,0,0.15);
			border-radius:3px;
			position: absolute;
			top:30px;
			left:15px;
		}

		.suglist ul{
			background:#fff;
			border-radius:3px}
		.suglist li{
			cursor:default;
			font:14px/29px Microsoft Yahei;
			height:29px;
			color:#525c66;
			padding-left:10px}
		.suglist li:first-child{
			border-radius:3px 3px 0 0}
		.suglist li:last-child{
			border-radius:0 0 3px 3px}
		.suglist li:hover,.suglist li.cur{
			background:#ebf0f5}
		.suglist li strong{
			font-weight:normal;
			color:#0b80e6}
		.suglist .recommend{
			height:auto;
			line-height:18px;
			padding:5px 0;
			overflow:hidden;
			zoom:1;
			cursor:pointer}
		.suglist .recommend img{
			float:left;
			border:1px solid #d8d8d8;
			background-color:#FFF}
		.suglist .recommend h3{
			color:#000;
			height:18px;
			overflow:hidden;
			font-size:14px}
		.suglist .recommend p{
			height:18px;
			overflow:hidden;
			color:#8e8e8e;
			font-size:12px;
			text-overflow:ellipsis;
			white-space:nowrap}
		.suglist .recommend .bgGreen,.suglist .recommend .bgOrange{
			display:inline-block;
			color:#fff;
			font-size:12px;
			font-family:simsun;
			height:18px;
			overflow:hidden;
			text-align:center;
			padding:0 5px;
			vertical-align:top;
			margin-left:10px}
		.suglist .recommend .cGray{
			color:#787878}
		.suglist .recommend .bgGreen{
			background-color:#5bc102}
		.suglist .recommend .bgOrange{
			background-color:#fe781f}
		.suglist .recommend-soft img{
			padding:3px;
			margin-right:15px;
			margin-left:5px;
			height:36px}
		.suglist .recommend-soft h3{
			padding-top:2px;
			margin-bottom:7px}
		.suglist .recommend-video img{
			margin:2px 5px 0 8px;
			height:14px;
			border:none}
		.suglist .recommend-video p{
			padding-top:5px;
			padding-left:8px}
		.suglist .recommend-movie img{
			margin-right:8px;
			margin-left:8px;
			height:48px;
			max-width:100px}
		.suglist .recommend-movie h3{
			padding-top:4px;
			margin-bottom:7px}
	</style>
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<!--/meta 作为公共模版分离出去-->

<title>修改密码 - 会员管理 - H-ui.admin v3.1</title>
<meta name="keywords" content="H-ui.admin v3.1,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载">
<meta name="description" content="H-ui.admin v3.1，是一款由国人开发的轻量级扁平化网站后台模板，完全免费开源的网站后台管理系统模版，适合中小型CMS后台系统。">
</head>
<body>
<article class="page-container">
	<form action="addOrUpdateSystemDictionaryItem" method="post" class="form form-horizontal" id="form-change-password">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>用户名：</label>
			<div class="formControls col-xs-4 col-sm-9">
				<input type="text" class="input-text" autocomplete="off" style="width:350px" placeholder="需要审核的用户名" id="username" >
				<div class="suglist" id="suglist" style="display: none">
					<ul id="content_list">
					</ul>
				</div>
				<input type="text" class="input-text" style="width:350px"  id="id" readonly hidden >
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>审核备注：</label>
			<div class="formControls col-xs-8 col-sm-7">
				<textarea style="height: 150px;width: 570px;font-size: 16px" placeholder="审核备注" id="remark"></textarea>
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-2  col-sm-offset-7">
				<input class="btn btn-primary radius btn-success" id="auditSuccess" type="button" value="&nbsp;&nbsp;审核通过&nbsp;&nbsp;">
			</div>
			<div class="col-xs-8 col-sm-2  ">
				<input class="btn btn-primary radius btn-danger"  id="auditRefuse" type="button" value="&nbsp;&nbsp;审核拒绝&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>  
<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script> 
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="lib/jquery.validation/1.14.0/jquery.validate.js"></script> 
<script type="text/javascript" src="lib/jquery.validation/1.14.0/validate-methods.js"></script> 
<script type="text/javascript" src="lib/jquery.validation/1.14.0/messages_zh.js"></script> 
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript">
	//用户名内容被改变
	$("#username").keyup(function(){
	    var $this =$(this);
	    if(_util.isNull($this.val())){
            $("#suglist").hide();
            $("#id").val("")
	        return;
		}
	    $.ajax({
	    		url:"autoCompletion.do",
	    		data:{"text":$this.val()},
	    		dataType:"json",
	    	    type:"POST",
	    		success:function(res){
	    			if(res.status===0){
	    			    var data=res.data;
						if(data!=null && data.size>0)
						{
						    $("#content_list").val("");
						    var html="";
						    for(var i=0;i<data.size;i++){
						        var index=data.list[i].username.indexOf($this.val());
						        var text=data.list[i].username.substring($this.val().length);
						        if(index>=0){
                                     html+="<li class='options' id='"+data.list[i].id+"'><strong>"+$this.val()+"</strong>"+text+"</li>";
								}else{
                                     html+="<li class='options' id='"+data.list[i].id+"'><strong>dssa</strong>t</li>";
								}
                            }
                            $("#suglist").show();
                            $("#content_list").html(html);
						}else{
							$("#suglist").hide();
                            $("#id").val("")
						}
	    			}

                    $(".options").on("click",function () {
                        var $this=$(this);
                        $("#username").val($this.text());
                        $("#id").val($this.attr("id"))
                        $("#suglist").hide();
                    })
	    		}
	    	})
	})

	$("#auditSuccess").click(function(){
	    ajaxSubmit(1);
	})
    $("#auditRefuse").click(function(){
        ajaxSubmit(2);
    })
    function ajaxSubmit(state){
	    var id 	   = $("#id").val();
        var remark = $("#remark").val();
        if(_util.isNull(id)){
            layer.msg("用户名不存在,请校验正确后重新输入");
            $("#username").focus();
		}

        if(_util.isNull(remark)){
            layer.msg("请添加审核备注再提交操作");
            $("#remark").focus();
        }
		$.ajax({
				url:"VedioAuth.do",
				data:{"id":id,"state":state,"remark":remark},
				dataType:"json",
			    type:"POST",
				success:function(res){
					if(res.status===0){
                        var index = parent.layer.getFrameIndex(window.name);
                        parent.DataTablesReloda();
                        parent.layer.msg("审核操作成功");
                        parent.layer.close(index);
                    }
				}
			})
	}
 </script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>